//
//  ViewController.m
//  Example
//
//  Created by Alean on 2022/12/2.
//

#import "ViewController.h"
//#import <WDDatabase/WDDatabase-Swift.h>
#import <WDLogicBehind/WDLogicBehind-Swift.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    WDCacheStore *store = [[WDCacheStore alloc] init];
    [store storeObject:@{@"id": @1, @"name": @"小样😄🚢", @"age": @30}
                     key:@"key1"];
    [store storeObject:@"nimeide"
                key:@"key2"];
    [store storeObject:@YES key:@"key3"];
//    [store removeObject:@"key2"];
//    [store removeObjects:@[@"key1", @"key2", @"key3", @"key4"]];

    id object = [store restoreObject:@"key3"];
    NSLog(@"object = %@", object);
    
//    [store clearAllCache];
//    [store deleteCache];
//    [store storeObject:@{@"id": @1, @"name": @"小样😄🚢", @"age": @30}
//                     key:@"key4"];
}


@end
